package com.uxwine.util;

import android.content.Context;
import android.widget.Toast;

public class UxToast {
	
	public static void lshow(Context ctx, int resId)
	{
		show(ctx, resId, Toast.LENGTH_LONG);
	}
	
	public static void sshow(Context ctx, int resId)
	{
		show(ctx, resId, Toast.LENGTH_SHORT);
	}
	
	public static void lshow(Context ctx, String text)
	{
		show(ctx, text, Toast.LENGTH_LONG);
	}
	
	public static void sshow(Context ctx, String text)
	{
		show(ctx, text, Toast.LENGTH_SHORT);
	}
	
	public static void show(Context ctx, String text, int length)
	{
		Toast.makeText(ctx, text, length).show();
	}
	
	public static void show(Context ctx, int resId, int length)
	{
		Toast.makeText(ctx, ctx.getResources().getString(resId), length).show();
	}
}
